package com.song.shop.zookeeper;

import org.I0Itec.zkclient.ZkClient;
import org.apache.zookeeper.CreateMode;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class ZookeeperTest {

    public static void main(String[] args) {


        ZkClient zkClient = new ZkClient("111.231.232.212:2181");
        //zkClient.create("/root","root test" , CreateMode.PERSISTENT);
        Object o = zkClient.readData("/root0000000002");
        System.out.println(o.toString());

    }
}
